#include "asm.h"
#include "regdef.h"
#include "inst_test.h"

LEAF(n16_beq_test)
    addi.w s0, s0 ,1
    li  s2, 0x0
###test inst
    TEST_BEQ(0x52919078, 0x81468400, 0x0fb16a80, 0xdf225ddc, 0x00000000, 0x00000000)
    TEST_BEQ(0x90db14d8, 0xa81a7400, 0x2fdac790, 0xe4a202d3, 0x00000000, 0x00000000)
    TEST_BEQ(0xbca1eea8, 0xa4ac24ae, 0xc64ac344, 0xc38ed9a0, 0x00000000, 0x00000000)
    TEST_BEQ(0xc7820fa8, 0x71f9dbb0, 0x523b85b0, 0xcb7dbd40, 0x00000000, 0x00000000)
    TEST_BEQ(0x65a8a904, 0x042a7ac0, 0x2308a218, 0x602bdf60, 0x00000000, 0x00000000)
    TEST_BEQ(0x7d5d9210, 0x44f63240, 0x55a9ccbe, 0x80212b6f, 0x00000000, 0x00000000)
    TEST_BEQ(0x0c81c340, 0x6ef54770, 0xc8b25370, 0xe76ee2aa, 0x00000000, 0x00000000)
    TEST_BEQ(0xf14588c0, 0x433941dc, 0x15110ec0, 0xf5606dc1, 0x00000000, 0x00000000)
    TEST_BEQ(0x12c43800, 0xf82f4330, 0x56c2e54e, 0xe0bc64db, 0x00000000, 0x00000000)
    TEST_BEQ(0xd8e1092e, 0xd2b6e680, 0xdd2d5c00, 0x9b71fc28, 0x00000000, 0x00000000)
    TEST_BEQ(0x845d1a88, 0xf2d221e3, 0xf42f8ba8, 0x770d2480, 0x00000000, 0x00000000)
    TEST_BEQ(0x5a45d27e, 0x834ed9a0, 0x66177028, 0x52cc2e02, 0x00000000, 0x00000000)
    TEST_BEQ(0x87561fa0, 0x5b98cc40, 0x13ce3ff4, 0x7e977210, 0x00000000, 0x00000000)
    TEST_BEQ(0xff23103e, 0x6d5e4f98, 0x24400aa8, 0x298c0d24, 0x00000000, 0x00000000)
    TEST_BEQ(0xa8ed23cc, 0x63bcd4cb, 0x17e4cea5, 0x82cacb58, 0x00000000, 0x00000000)
    TEST_BEQ(0xb6ed7974, 0x90a864cc, 0x41298cc0, 0x79eec5bc, 0x00000000, 0x00000000)
    TEST_BEQ(0x1db1fc90, 0x80460071, 0x0a756719, 0x4840d3ee, 0x00000000, 0x00000000)
    TEST_BEQ(0xc061e8f8, 0x81f38b90, 0xc6f49686, 0xcd73d66e, 0x00000000, 0x00000000)
    TEST_BEQ(0x09661c3b, 0x5d7f1dbc, 0x6879db18, 0x47846be5, 0x00000000, 0x00000000)
    TEST_BEQ(0x095ce5a2, 0x98e97960, 0x7e64d000, 0x1c913d20, 0x00000000, 0x00000000)
    TEST_BEQ(0xf73c4e84, 0xb57d80a4, 0xab158dc0, 0xf156c1aa, 0x00000000, 0x00000000)
    TEST_BEQ(0xcc4d1fc0, 0x838c4924, 0xd37fd938, 0x502fc608, 0x00000000, 0x00000000)
    TEST_BEQ(0x5934928a, 0x3eca44e0, 0x9f505b98, 0xb6e3224a, 0x00000000, 0x00000000)
    TEST_BEQ(0x824fe3da, 0xb85ff2c8, 0xeca11b7c, 0xa2aa3080, 0x00000000, 0x00000000)
    TEST_BEQ(0x3cc0448c, 0x91fdd056, 0x0a9903f3, 0xa386a976, 0x00000000, 0x00000000)
    TEST_BEQ(0x4f9132c0, 0xa8fc1a4a, 0xeeed2418, 0x85a1adc3, 0x00000000, 0x00000000)
    TEST_BEQ(0x7da09c48, 0xe4d43eb5, 0x958dafb8, 0xebf1c120, 0x00000000, 0x00000000)
    TEST_BEQ(0x17ea2cfc, 0x948bb9bc, 0x73e38780, 0x5a15520e, 0x00000000, 0x00000000)
    TEST_BEQ(0x00449e93, 0xc141e1ff, 0xab8344c8, 0x91fc4700, 0x00000000, 0x00000000)
    TEST_BEQ(0xb19aeff8, 0x300fa1d4, 0xcc52a678, 0x52cf1954, 0x00000000, 0x00000000)
    TEST_BEQ(0x60174774, 0x6d86d768, 0x69b0cc98, 0x69f32f98, 0x00000000, 0x00000000)
    TEST_BEQ(0x6b272220, 0xad98a54c, 0xdddee13f, 0x964f40e8, 0x00000000, 0x00000000)
    TEST_BEQ(0x0f7a82dc, 0x0072b500, 0x9e6d5026, 0x7a8c1f40, 0x00000000, 0x00000000)
    TEST_BEQ(0x0c823f63, 0x875b1380, 0x920c2ff0, 0xf308c282, 0x00000000, 0x00000000)
    TEST_BEQ(0xba5b1df6, 0x6e97d42c, 0x74b32340, 0xb407a300, 0x00000000, 0x00000000)
    TEST_BEQ(0xc3186234, 0x836e3b94, 0x28b72000, 0x2c92ebc8, 0x00000000, 0x00000000)
    TEST_BEQ(0x2a983e18, 0x2aa96464, 0x2e6ac240, 0xb0ffd1c0, 0x00000000, 0x00000000)
    TEST_BEQ(0x29b4b6c4, 0xe7cb9734, 0x81cea950, 0xec060d38, 0x00000000, 0x00000000)
    TEST_BEQ(0x3d30c180, 0xe5f5a570, 0x262b5f84, 0x6134f880, 0x00000000, 0x00000000)
    TEST_BEQ(0x4e06a40c, 0xc4726892, 0xdbaf2500, 0xbb8fea30, 0x00000000, 0x00000000)
    TEST_BEQ(0x3d014a24, 0x420a4ad0, 0x585d77a1, 0x18e99140, 0x00000000, 0x00000000)
    TEST_BEQ(0x00422ff4, 0x6a30c69c, 0x13525faa, 0x15eac258, 0x00000000, 0x00000000)
    TEST_BEQ(0xf2d9eaa4, 0x13b0361e, 0xb5620140, 0xda1341dc, 0x00000000, 0x00000000)
    TEST_BEQ(0x156bcc30, 0x7f99dea0, 0x88dd9aa4, 0x7bc6fb98, 0x00000000, 0x00000000)
    TEST_BEQ(0xf41d055c, 0xcbe81fa0, 0xce5618e0, 0x7be9d69d, 0x00000000, 0x00000000)
    TEST_BEQ(0xc4651ad0, 0x8ae4f65e, 0x6143d62a, 0x4809836e, 0x00000000, 0x00000000)
    TEST_BEQ(0x944c8160, 0x648eb888, 0xed035fd4, 0x0bb4d92c, 0x00000000, 0x00000000)
    TEST_BEQ(0x9408741c, 0x1da1d060, 0xad3a0385, 0xc6b59c6e, 0x00000000, 0x00000000)
    TEST_BEQ(0xb21e14d1, 0xc8b4db80, 0xb8f00578, 0x7c9cbe18, 0x00000000, 0x00000000)
    TEST_BEQ(0x1c0dff06, 0x6e6252c0, 0x928e58b7, 0x66728f80, 0x00000000, 0x00000000)
    TEST_BEQ(0x1d25b274, 0xfc4f66c6, 0x93368d10, 0xd01e595a, 0x00000000, 0x00000000)
    TEST_BEQ(0x7a690218, 0x240bc551, 0xcc0337a4, 0xaf62686c, 0x00000000, 0x00000000)
    TEST_BEQ(0xb3508411, 0x14e2fd6a, 0x5fcf5436, 0x9d50ad00, 0x00000000, 0x00000000)
    TEST_BEQ(0xa7d4c00c, 0x18b357e0, 0xa172ac8b, 0xf4d6b000, 0x00000000, 0x00000000)
    TEST_BEQ(0xe128d164, 0x47f13f80, 0xb0deedc2, 0x9fed1d0a, 0x00000000, 0x00000000)
    TEST_BEQ(0x9aa1ef5e, 0xedeba6a0, 0xcbea8298, 0x7b612216, 0x00000000, 0x00000000)
    TEST_BEQ(0xff0ced4c, 0x36cda884, 0xb18926d8, 0x2e211740, 0x00000000, 0x00000000)
    TEST_BEQ(0xa681b780, 0x45fdb2b0, 0xa945afee, 0xcaaf5ac0, 0x00000000, 0x00000000)
    TEST_BEQ(0x3b49dd76, 0x9ce750b8, 0x584ea574, 0xd97faf96, 0x00000000, 0x00000000)
    TEST_BEQ(0x723dc480, 0xff47ef40, 0x0815ea80, 0xb319c180, 0x00000000, 0x00000000)
    TEST_BEQ(0x86b3805d, 0x71daab98, 0x2fcb60b8, 0x59bba0e8, 0x00000000, 0x00000000)
    TEST_BEQ(0xd06393ca, 0xf600b324, 0x8ab8dd00, 0xdfde1214, 0x00000000, 0x00000000)
    TEST_BEQ(0x6ba01b98, 0x6adf234a, 0xc4dbbbdc, 0x5185b2ba, 0x00000000, 0x00000000)
    TEST_BEQ(0x15f45b20, 0x67e27312, 0x11106d3c, 0xcbab8356, 0x00000000, 0x00000000)
    TEST_BEQ(0x43d22865, 0x16c434c6, 0xacfc55ad, 0x5acde500, 0x00000000, 0x00000000)
    TEST_BEQ(0x8f921587, 0x1ad22f9b, 0xfaa1a9e0, 0xc8f9b560, 0x00000000, 0x00000000)
    TEST_BEQ(0x2ec07214, 0x75be64ec, 0xb49913a0, 0x08c3fcf6, 0x00000000, 0x00000000)
    TEST_BEQ(0x620a22c4, 0xf75c26a8, 0x6656905c, 0xa6e74848, 0x00000000, 0x00000000)
    TEST_BEQ(0x3aca70b7, 0x0b6c85c0, 0x5bf5bbb8, 0x3d390b18, 0x00000000, 0x00000000)
    TEST_BEQ(0x00949b6a, 0xcec2bd8a, 0x9f00fa46, 0x695ab080, 0x00000000, 0x00000000)
    TEST_BEQ(0x2d867324, 0xc4492d98, 0x2fad4900, 0x81dac6f4, 0x00000000, 0x00000000)
    TEST_BEQ(0x54acb431, 0x565c3716, 0xb9818b7c, 0x5113b958, 0x00000000, 0x00000000)
    TEST_BEQ(0xbd8fc93a, 0xa9cfd991, 0x0abe55c0, 0x5648dda2, 0x00000000, 0x00000000)
    TEST_BEQ(0x75deaf80, 0x94bc703a, 0xa0484fc0, 0x16044472, 0x00000000, 0x00000000)
    TEST_BEQ(0x9a3debd8, 0x6f1ae918, 0x909870ba, 0xd5a98908, 0x00000000, 0x00000000)
    TEST_BEQ(0x48b5875c, 0xbb5afcf0, 0x6d8bea00, 0x164a47e0, 0x00000000, 0x00000000)
    TEST_BEQ(0x40b7e26e, 0xa3d59c9c, 0x3a66c1c8, 0x33596a5c, 0x00000000, 0x00000000)
    TEST_BEQ(0x9bcaf84c, 0x8b22ae0c, 0x23419148, 0x9290dc39, 0x00000000, 0x00000000)
    TEST_BEQ(0x540f3c88, 0xd9bf96a0, 0xbadc5cbc, 0xe0a84e20, 0x00000000, 0x00000000)
    TEST_BEQ(0x88b36ab8, 0xda6a6240, 0xdd84a740, 0x057e9600, 0x00000000, 0x00000000)
    TEST_BEQ(0x7fedddc2, 0x83307ffa, 0x51e22948, 0x8eb3cc5a, 0x00000000, 0x00000000)
    TEST_BEQ(0xb81b4be0, 0x5d015400, 0x4ae806f0, 0x55d66084, 0x00000000, 0x00000000)
    TEST_BEQ(0x87c08d88, 0x94ea96c9, 0x14e89cc0, 0x8ea28780, 0x00000000, 0x00000000)
    TEST_BEQ(0x682a15d7, 0xa0f80b48, 0xcddddf2e, 0x346af45a, 0x00000000, 0x00000000)
    TEST_BEQ(0x0ef02ac0, 0x80480528, 0x8c899870, 0xf3d00412, 0x00000000, 0x00000000)
    TEST_BEQ(0x6e2c7b80, 0x25b25cc0, 0xb9f79748, 0xb2dbfb18, 0x00000000, 0x00000000)
    TEST_BEQ(0x267a98a0, 0x29e1b4b2, 0xb37d6c0c, 0xb0af9b10, 0x00000000, 0x00000000)
    TEST_BEQ(0xd0182611, 0x619134fd, 0xa8715a30, 0xfd6fbbf4, 0x00000000, 0x00000000)
    TEST_BEQ(0x6abfbc80, 0xbfbff1e0, 0x3a37fb00, 0x8f339d50, 0x00000000, 0x00000000)
    TEST_BEQ(0xe4e3643a, 0x056249f0, 0x5f53abf6, 0x73bc487e, 0x00000000, 0x00000000)
    TEST_BEQ(0xf288eb42, 0x9cca9e5e, 0xba2cd5a0, 0x26d94745, 0x00000000, 0x00000000)
    TEST_BEQ(0x9fbaa422, 0x8ae8a700, 0x9de41e10, 0x0f974160, 0x00000000, 0x00000000)
    TEST_BEQ(0x902ee1c0, 0x5bffefb9, 0x537cede6, 0x1efa3e38, 0x00000000, 0x00000000)
    TEST_BEQ(0xf2b50d80, 0xee8df2c0, 0xb24a3b9c, 0xd83626a7, 0x00000000, 0x00000000)
    TEST_BEQ(0xd82157d0, 0xfb5e5df9, 0xe459e804, 0xdcac8baa, 0x00000000, 0x00000000)
    TEST_BEQ(0xa4aa88d0, 0x81295cd4, 0x6605ad38, 0xc5f18000, 0x00000000, 0x00000000)
    TEST_BEQ(0xea156f68, 0xde782be8, 0xd107ea36, 0x6a8211e0, 0x00000000, 0x00000000)
    TEST_BEQ(0x19603c9e, 0xb1d4e8a2, 0xff161a84, 0x7fa492d6, 0x00000000, 0x00000000)
    TEST_BEQ(0x05540a30, 0x4869637a, 0x0aaa41d0, 0xfc3c6a0a, 0x00000000, 0x00000000)
    TEST_BEQ(0xeed9a13c, 0x4d991f48, 0xb7b37740, 0xdd801ec0, 0x00000000, 0x00000000)
    TEST_BEQ(0x55a95b10, 0x55a95b10, 0x4030daee, 0x489faca0, 0x4030daee, 0x489faca0)
    TEST_BEQ(0xc7fafc6e, 0xc7fafc6e, 0xf621bd40, 0x1846f010, 0xf621bd40, 0x1846f010)
    TEST_BEQ(0x5edd9b70, 0x5edd9b70, 0x6ca0f3e8, 0x8e6e864a, 0x6ca0f3e8, 0x8e6e864a)
    TEST_BEQ(0x84615a1c, 0x84615a1c, 0xfc7b5848, 0x147a1334, 0xfc7b5848, 0x147a1334)
    TEST_BEQ(0xb35aa064, 0xb35aa064, 0x14a7868c, 0x57a90a42, 0x14a7868c, 0x57a90a42)
    TEST_BEQ(0xadde2c07, 0xadde2c07, 0xb01099ca, 0xf3e8696a, 0xb01099ca, 0xf3e8696a)
    TEST_BEQ(0x7bfa5620, 0x7bfa5620, 0x38f3f91a, 0x71415240, 0x38f3f91a, 0x71415240)
    TEST_BEQ(0xad63aa49, 0xad63aa49, 0x126b1544, 0x2a75ac7c, 0x126b1544, 0x2a75ac7c)
    TEST_BEQ(0x4d99360c, 0x4d99360c, 0x1ed7e416, 0xeec0e740, 0x1ed7e416, 0xeec0e740)
    TEST_BEQ(0x85a1913c, 0x85a1913c, 0x339a9258, 0x97c09900, 0x339a9258, 0x97c09900)
    TEST_BEQ(0x8e0c87ce, 0x8e0c87ce, 0x20e570f0, 0x29e7b81f, 0x20e570f0, 0x29e7b81f)
    TEST_BEQ(0xf069f8b0, 0xf069f8b0, 0xa35eaa70, 0x87907e08, 0xa35eaa70, 0x87907e08)
    TEST_BEQ(0xf73cb58c, 0xf73cb58c, 0x7566195e, 0xc573e8bc, 0x7566195e, 0xc573e8bc)
    TEST_BEQ(0xe3bf3872, 0xe3bf3872, 0x83496935, 0x0729bfc0, 0x83496935, 0x0729bfc0)
    TEST_BEQ(0x85554520, 0x85554520, 0xe49ab62a, 0xf202e1c0, 0xe49ab62a, 0xf202e1c0)
    TEST_BEQ(0xc4dcb915, 0xc4dcb915, 0xae2c9027, 0x163f20a0, 0xae2c9027, 0x163f20a0)
    TEST_BEQ(0x4e33da80, 0x4e33da80, 0xe70b2707, 0x9ef818d9, 0xe70b2707, 0x9ef818d9)
    TEST_BEQ(0xd72a545c, 0xd72a545c, 0xdca8bae0, 0x21649da0, 0xdca8bae0, 0x21649da0)
    TEST_BEQ(0x65e7a8d1, 0x65e7a8d1, 0xae111cc0, 0x19b22c18, 0xae111cc0, 0x19b22c18)
    TEST_BEQ(0x4bf9c400, 0x4bf9c400, 0xbd225e68, 0x7300cf7d, 0xbd225e68, 0x7300cf7d)
    TEST_BEQ(0xc0927092, 0xc0927092, 0x91b9a6b4, 0xe38847c0, 0x91b9a6b4, 0xe38847c0)
    TEST_BEQ(0x4ea8197a, 0x4ea8197a, 0x1b258c10, 0xc948fccc, 0x1b258c10, 0xc948fccc)
    TEST_BEQ(0x62fb4a80, 0x62fb4a80, 0x166a1ae0, 0x107af4b4, 0x166a1ae0, 0x107af4b4)
    TEST_BEQ(0x56a04234, 0x56a04234, 0xb13d6c84, 0x464b2238, 0xb13d6c84, 0x464b2238)
    TEST_BEQ(0xd1c91084, 0xd1c91084, 0xe3700592, 0xa4ef050e, 0xe3700592, 0xa4ef050e)
    TEST_BEQ(0x94223f24, 0x94223f24, 0xe77f3df0, 0x9285f1b4, 0xe77f3df0, 0x9285f1b4)
    TEST_BEQ(0x13b85cc0, 0x13b85cc0, 0x0c089630, 0x721a3810, 0x0c089630, 0x721a3810)
    TEST_BEQ(0xc41dbf64, 0xc41dbf64, 0xa537e80b, 0x53d5947e, 0xa537e80b, 0x53d5947e)
    TEST_BEQ(0x60af6080, 0x60af6080, 0x5b330ae5, 0x2d2576be, 0x5b330ae5, 0x2d2576be)
    TEST_BEQ(0x8541cd00, 0x8541cd00, 0x3c52c34c, 0x621695c7, 0x3c52c34c, 0x621695c7)
    TEST_BEQ(0x097f2a98, 0x097f2a98, 0x1fce9240, 0x8a958480, 0x1fce9240, 0x8a958480)
    TEST_BEQ(0x98325f68, 0x98325f68, 0x8bcefd8a, 0x85c3e632, 0x8bcefd8a, 0x85c3e632)
    TEST_BEQ(0x9a996134, 0x9a996134, 0x8294e540, 0x78b041e0, 0x8294e540, 0x78b041e0)
    TEST_BEQ(0xefb0dd7c, 0xefb0dd7c, 0xa3c96acc, 0x07916ea6, 0xa3c96acc, 0x07916ea6)
    TEST_BEQ(0xa877ea18, 0xa877ea18, 0x0192dd01, 0x4aaaada0, 0x0192dd01, 0x4aaaada0)
    TEST_BEQ(0x235b4c11, 0x235b4c11, 0x6d529950, 0x22370e98, 0x6d529950, 0x22370e98)
    TEST_BEQ(0xfb177658, 0xfb177658, 0x1ae45760, 0x4a9e5ace, 0x1ae45760, 0x4a9e5ace)
    TEST_BEQ(0x8fd70840, 0x8fd70840, 0x15f0a7a0, 0xaeaeccec, 0x15f0a7a0, 0xaeaeccec)
    TEST_BEQ(0xdf9a8a5a, 0xdf9a8a5a, 0xf176807e, 0x5ae91f7c, 0xf176807e, 0x5ae91f7c)
    TEST_BEQ(0xcdc6657c, 0xcdc6657c, 0xcc169869, 0x9c72bd96, 0xcc169869, 0x9c72bd96)
    TEST_BEQ(0xf16f8ac4, 0xf16f8ac4, 0x7d005284, 0xd1e9500c, 0x7d005284, 0xd1e9500c)
    TEST_BEQ(0x24c37e78, 0x24c37e78, 0x4cfa0eda, 0x34c27390, 0x4cfa0eda, 0x34c27390)
    TEST_BEQ(0xab37fdec, 0xab37fdec, 0x450e7c0c, 0x639d0ef8, 0x450e7c0c, 0x639d0ef8)
    TEST_BEQ(0x235843c0, 0x235843c0, 0x5b269f78, 0xc0952a80, 0x5b269f78, 0xc0952a80)
    TEST_BEQ(0x1ff5d45e, 0x1ff5d45e, 0x4740bb7e, 0x9ea80c50, 0x4740bb7e, 0x9ea80c50)
    TEST_BEQ(0xefe103c0, 0xefe103c0, 0x9d6066bc, 0xb59055d0, 0x9d6066bc, 0xb59055d0)
    TEST_BEQ(0x3e7f4ab4, 0x3e7f4ab4, 0x8e0d0eaa, 0xa926fe80, 0x8e0d0eaa, 0xa926fe80)
    TEST_BEQ(0x09c6dada, 0x09c6dada, 0xeaf51224, 0x987934bc, 0xeaf51224, 0x987934bc)
    TEST_BEQ(0x4579a63c, 0x4579a63c, 0xc4d7fd40, 0xceab5484, 0xc4d7fd40, 0xceab5484)
    TEST_BEQ(0xebdf3bec, 0xebdf3bec, 0xdea63aa0, 0xeffcc28e, 0xdea63aa0, 0xeffcc28e)
    TEST_BEQ(0xdf35158c, 0xdf35158c, 0x8de32077, 0xd4964a7c, 0x8de32077, 0xd4964a7c)
    TEST_BEQ(0xb6f0e000, 0xb6f0e000, 0x20be1150, 0xc81d159a, 0x20be1150, 0xc81d159a)
    TEST_BEQ(0x07224e40, 0x07224e40, 0x482d3718, 0x3d9f76b6, 0x482d3718, 0x3d9f76b6)
    TEST_BEQ(0x25b13638, 0x25b13638, 0x6aa52133, 0x293b5e00, 0x6aa52133, 0x293b5e00)
    TEST_BEQ(0xee911ecc, 0xee911ecc, 0xd050e9a8, 0x5fb2f72c, 0xd050e9a8, 0x5fb2f72c)
    TEST_BEQ(0x6e706f04, 0x6e706f04, 0x2f631c8d, 0x90012e06, 0x2f631c8d, 0x90012e06)
    TEST_BEQ(0x7160c398, 0x7160c398, 0x904e9db5, 0x0cb34796, 0x904e9db5, 0x0cb34796)
    TEST_BEQ(0x38f4a350, 0x38f4a350, 0x4521213e, 0x3f022f08, 0x4521213e, 0x3f022f08)
    TEST_BEQ(0xa00f812c, 0xa00f812c, 0x894ac084, 0xbe5aad9e, 0x894ac084, 0xbe5aad9e)
    TEST_BEQ(0xd6d4060c, 0xd6d4060c, 0xa2f01088, 0x1f6441f4, 0xa2f01088, 0x1f6441f4)
    TEST_BEQ(0x14946902, 0x14946902, 0x1e34a914, 0x3d3f3fd0, 0x1e34a914, 0x3d3f3fd0)
    TEST_BEQ(0xd668937a, 0xd668937a, 0x3fe26f40, 0x3dbd9138, 0x3fe26f40, 0x3dbd9138)
    TEST_BEQ(0xa3443752, 0xa3443752, 0x83157714, 0x2566fb0b, 0x83157714, 0x2566fb0b)
    TEST_BEQ(0x99b454fe, 0x99b454fe, 0xe3406fe8, 0xcff9c930, 0xe3406fe8, 0xcff9c930)
    TEST_BEQ(0xc11dbeec, 0xc11dbeec, 0x9426bae2, 0xe2c0a5e1, 0x9426bae2, 0xe2c0a5e1)
    TEST_BEQ(0x6d0d5728, 0x6d0d5728, 0xe68ee372, 0xe8459424, 0xe68ee372, 0xe8459424)
    TEST_BEQ(0x3de4d86d, 0x3de4d86d, 0x901f2b7c, 0x5b845160, 0x901f2b7c, 0x5b845160)
    TEST_BEQ(0xcd446d5c, 0xcd446d5c, 0x7f6f8a00, 0x1d34e2a0, 0x7f6f8a00, 0x1d34e2a0)
    TEST_BEQ(0x4f0c1d90, 0x4f0c1d90, 0x8304640a, 0x42ff8a84, 0x8304640a, 0x42ff8a84)
    TEST_BEQ(0x60c28156, 0x60c28156, 0xa0ca1110, 0xab5175b0, 0xa0ca1110, 0xab5175b0)
    TEST_BEQ(0x75e49a22, 0x75e49a22, 0x67791830, 0x8d211c80, 0x67791830, 0x8d211c80)
    TEST_BEQ(0x36a57b76, 0x36a57b76, 0xb525a720, 0x9dcbeb98, 0xb525a720, 0x9dcbeb98)
    TEST_BEQ(0x89eb9e70, 0x89eb9e70, 0xb962fcee, 0x79e1d965, 0xb962fcee, 0x79e1d965)
    TEST_BEQ(0xa28c209a, 0xa28c209a, 0x28751d6c, 0x6c955274, 0x28751d6c, 0x6c955274)
    TEST_BEQ(0xc21539fc, 0xc21539fc, 0x25f84b54, 0xad9e97c0, 0x25f84b54, 0xad9e97c0)
    TEST_BEQ(0x89fe881f, 0x89fe881f, 0xaaad5638, 0xeb63f12c, 0xaaad5638, 0xeb63f12c)
    TEST_BEQ(0x152650e8, 0x152650e8, 0xafb6f690, 0xa838f170, 0xafb6f690, 0xa838f170)
    TEST_BEQ(0x57a0b0ae, 0x57a0b0ae, 0xcb75942a, 0xfb122c04, 0xcb75942a, 0xfb122c04)
    TEST_BEQ(0xa3548fd4, 0xa3548fd4, 0x54aa10c8, 0x9c18f200, 0x54aa10c8, 0x9c18f200)
    TEST_BEQ(0x1b5116e0, 0x1b5116e0, 0x3b0e7d7e, 0x0bec6118, 0x3b0e7d7e, 0x0bec6118)
    TEST_BEQ(0x1f74adfa, 0x1f74adfa, 0x3ef427d0, 0xedf02a14, 0x3ef427d0, 0xedf02a14)
    TEST_BEQ(0x00c882e4, 0x00c882e4, 0x8a955513, 0xcbda2e00, 0x8a955513, 0xcbda2e00)
    TEST_BEQ(0xbf926b10, 0xbf926b10, 0xced18270, 0x83595811, 0xced18270, 0x83595811)
    TEST_BEQ(0xa8ea67cc, 0xa8ea67cc, 0xace02efb, 0x6babfe90, 0xace02efb, 0x6babfe90)
    TEST_BEQ(0x9a25b4c6, 0x9a25b4c6, 0x3b52d521, 0xcbcbe300, 0x3b52d521, 0xcbcbe300)
    TEST_BEQ(0xfef34fc4, 0xfef34fc4, 0x7dcc6298, 0x09acf4fc, 0x7dcc6298, 0x09acf4fc)
    TEST_BEQ(0x3e99f9c8, 0x3e99f9c8, 0x92351c70, 0x4917958a, 0x92351c70, 0x4917958a)
    TEST_BEQ(0x1e0f61e0, 0x1e0f61e0, 0x7bcdc380, 0x9156d8d7, 0x7bcdc380, 0x9156d8d7)
    TEST_BEQ(0x00127980, 0x00127980, 0x2c701eae, 0xcdbc6e70, 0x2c701eae, 0xcdbc6e70)
    TEST_BEQ(0xb4739f26, 0xb4739f26, 0x14b14ed4, 0x35b68b96, 0x14b14ed4, 0x35b68b96)
    TEST_BEQ(0x794af9fb, 0x794af9fb, 0xd5749f5e, 0xcbbf3c38, 0xd5749f5e, 0xcbbf3c38)
    TEST_BEQ(0x2bc97b70, 0x2bc97b70, 0x820064ca, 0x1624bd60, 0x820064ca, 0x1624bd60)
    TEST_BEQ(0x20890510, 0x20890510, 0x1e11fa04, 0x04154e2a, 0x1e11fa04, 0x04154e2a)
    TEST_BEQ(0x65d95617, 0x65d95617, 0x8686f72a, 0x24e6ba2e, 0x8686f72a, 0x24e6ba2e)
    TEST_BEQ(0xba16c954, 0xba16c954, 0x6a2f1d80, 0x0b2373e0, 0x6a2f1d80, 0x0b2373e0)
    TEST_BEQ(0xa51ddd40, 0xa51ddd40, 0xf92d7916, 0x06bee0b6, 0xf92d7916, 0x06bee0b6)
    TEST_BEQ(0xd69a8679, 0xd69a8679, 0x9138ed40, 0x47e84f64, 0x9138ed40, 0x47e84f64)
    TEST_BEQ(0x8f6f29f9, 0x8f6f29f9, 0x869d8f24, 0x381570a0, 0x869d8f24, 0x381570a0)
    TEST_BEQ(0x5a6c012c, 0x5a6c012c, 0x6a3451c8, 0x9635b01c, 0x6a3451c8, 0x9635b01c)
    TEST_BEQ(0x9b519320, 0x9b519320, 0x6b719975, 0x73902fd0, 0x6b719975, 0x73902fd0)
    TEST_BEQ(0x39ba78ee, 0x00000000, 0x87bcacd0, 0xb4500980, 0x00000000, 0x00000000)
    TEST_BEQ(0x48ad77ec, 0x00000000, 0x1f1e92ca, 0x5a7522b4, 0x00000000, 0x00000000)
    TEST_BEQ(0xe966fea0, 0x00000000, 0x4a0726c0, 0xfdb039aa, 0x00000000, 0x00000000)
    TEST_BEQ(0x776b8730, 0x00000000, 0x042c0682, 0x0f144b68, 0x00000000, 0x00000000)
    TEST_BEQ(0x2448cda0, 0x00000000, 0xca29adc0, 0x851b9270, 0x00000000, 0x00000000)
    TEST_BEQ(0x8779e8f3, 0x00000000, 0x704b52e6, 0x3b61c216, 0x00000000, 0x00000000)
    TEST_BEQ(0x19511b17, 0x00000000, 0x6b91d820, 0x4230d1a0, 0x00000000, 0x00000000)
    TEST_BEQ(0x72c8be00, 0x00000000, 0x28c8af88, 0xa46e9b9a, 0x00000000, 0x00000000)
    TEST_BEQ(0x37a00820, 0x00000000, 0xa03a8bd0, 0x69dccece, 0x00000000, 0x00000000)
    TEST_BEQ(0x3f49796f, 0x00000000, 0x0f300740, 0x12275e6a, 0x00000000, 0x00000000)
    TEST_BEQ(0x1050538b, 0x00000000, 0x7a0a5b00, 0x3dce9b53, 0x00000000, 0x00000000)
    TEST_BEQ(0x320cf6dc, 0x00000000, 0x757d3370, 0x4983b1b8, 0x00000000, 0x00000000)
    TEST_BEQ(0x40a1777d, 0x00000000, 0xdc91c1f0, 0xe8c29c44, 0x00000000, 0x00000000)
    TEST_BEQ(0x277ac544, 0x00000000, 0xebe41d10, 0xe7e505f4, 0x00000000, 0x00000000)
    TEST_BEQ(0x8a2ed35f, 0x00000000, 0xdd5f100e, 0xe7ee5fac, 0x00000000, 0x00000000)
    TEST_BEQ(0xeab00131, 0x00000000, 0xe471c800, 0xffa694b0, 0x00000000, 0x00000000)
    TEST_BEQ(0xe9c64428, 0x00000000, 0x05cc9c60, 0x04315e3f, 0x00000000, 0x00000000)
    TEST_BEQ(0xdeebed02, 0x00000000, 0xe1182ccd, 0xe0612000, 0x00000000, 0x00000000)
    TEST_BEQ(0x2232ed80, 0x00000000, 0xd8f17ee0, 0x9913158d, 0x00000000, 0x00000000)
    TEST_BEQ(0x05f036c0, 0x00000000, 0x33db5b48, 0x90d85000, 0x00000000, 0x00000000)
    TEST_BEQ(0x387e92ac, 0x00000000, 0x34eef8d0, 0x3b7661f7, 0x00000000, 0x00000000)
    TEST_BEQ(0x508f91b8, 0x00000000, 0x9e761c58, 0x929bf0c8, 0x00000000, 0x00000000)
    TEST_BEQ(0xe3d3e0e0, 0x00000000, 0x6b1095f1, 0xee9578b2, 0x00000000, 0x00000000)
    TEST_BEQ(0x17a83a00, 0x00000000, 0xe4f4a370, 0x84816826, 0x00000000, 0x00000000)
    TEST_BEQ(0x74d2dd3b, 0x00000000, 0xec065b70, 0x3dc99838, 0x00000000, 0x00000000)
    TEST_BEQ(0xacc48022, 0x00000000, 0x6bd55fc5, 0xeee02690, 0x00000000, 0x00000000)
    TEST_BEQ(0x7e1d812e, 0x00000000, 0x12f6ce85, 0xae576406, 0x00000000, 0x00000000)
    TEST_BEQ(0xd59544d9, 0x00000000, 0xe6f8f750, 0xe0d28014, 0x00000000, 0x00000000)
    TEST_BEQ(0xe641233e, 0x00000000, 0x2adbb370, 0x4ba97182, 0x00000000, 0x00000000)
    TEST_BEQ(0x64655a52, 0x00000000, 0x3461e188, 0x8d037f68, 0x00000000, 0x00000000)
    TEST_BEQ(0x4b7c6180, 0x00000000, 0x7d4bc1d4, 0x68edb48c, 0x00000000, 0x00000000)
    TEST_BEQ(0x74b05504, 0x00000000, 0x883e98c8, 0xe7e62453, 0x00000000, 0x00000000)
    TEST_BEQ(0x2b137bc0, 0x00000000, 0x64154d84, 0xaf5b01d8, 0x00000000, 0x00000000)
    TEST_BEQ(0x994adfa4, 0x00000000, 0x4c339e5e, 0x57c86a1c, 0x00000000, 0x00000000)
    TEST_BEQ(0x6577d8a8, 0x00000000, 0x68548fa4, 0x9b262b30, 0x00000000, 0x00000000)
    TEST_BEQ(0xd0932d9e, 0x00000000, 0x6f6aa617, 0xd733d0e4, 0x00000000, 0x00000000)
    TEST_BEQ(0xb8199d7d, 0x00000000, 0x06b89a20, 0xb7252824, 0x00000000, 0x00000000)
    TEST_BEQ(0x44e5f240, 0x00000000, 0x50938b00, 0x9458ab08, 0x00000000, 0x00000000)
    TEST_BEQ(0xdb3ba5ec, 0x00000000, 0x23294fec, 0x30f4234d, 0x00000000, 0x00000000)
    TEST_BEQ(0x83359a79, 0x00000000, 0xc5440da8, 0xb4ff29a8, 0x00000000, 0x00000000)
    TEST_BEQ(0x41b977fa, 0x00000000, 0x117832c0, 0xdaa235c0, 0x00000000, 0x00000000)
    TEST_BEQ(0x99eaaa78, 0x00000000, 0x6c4e5298, 0xf256db22, 0x00000000, 0x00000000)
    TEST_BEQ(0x8661ecc0, 0x00000000, 0x92771549, 0x45a5b520, 0x00000000, 0x00000000)
    TEST_BEQ(0x865c8540, 0x00000000, 0xe9965980, 0x4667439c, 0x00000000, 0x00000000)
    TEST_BEQ(0xab7c28c0, 0x00000000, 0xbbc803d8, 0x71f30ad3, 0x00000000, 0x00000000)
    TEST_BEQ(0x3d89b994, 0x00000000, 0xc1af6e0c, 0x128b9d20, 0x00000000, 0x00000000)
    TEST_BEQ(0x8159773e, 0x00000000, 0xe2dad046, 0x07314f38, 0x00000000, 0x00000000)
    TEST_BEQ(0xb1b75c20, 0x00000000, 0x604d818b, 0x5f4bd61e, 0x00000000, 0x00000000)
    TEST_BEQ(0xe3cb8938, 0x00000000, 0xc5f20ff2, 0x23c08c2c, 0x00000000, 0x00000000)
    TEST_BEQ(0x71590742, 0x00000000, 0x11965dd0, 0x6094e550, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x307296f0, 0x98b26230, 0x83c935ac, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0xf3cd8160, 0xd00a2db8, 0x11ba0848, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x227a9d82, 0xc29c2198, 0xb83912a6, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x77367420, 0x48b6d3fe, 0xaf9686bf, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x1d72de80, 0xe32aba3c, 0x5bad4754, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x157c0b00, 0xfb46b590, 0x1ff836e0, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x94a58e08, 0x706ee3f6, 0x10006590, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x9f0dfdf8, 0x6e1d657a, 0x746c2ed0, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x12a1b650, 0xa373564e, 0x1aebc500, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x6481d3b6, 0x2e6a94ac, 0x7fe64600, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0xad28fc4e, 0xab6f5689, 0x82bdbf0a, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x2b0545e0, 0x07fa8694, 0xf328991e, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x0bfb8200, 0x195bc7fd, 0x11fa9c84, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x3d920dc0, 0xb26b2504, 0xcbd117d6, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x7ecb9ff8, 0x5800603f, 0x51c23468, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0xd5c17206, 0xc9ac2172, 0x7b43fa0f, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0xefe9bcd2, 0xafc94c96, 0xd9600ac1, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x6c678058, 0x650b6800, 0x4aa8cb70, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x00ccbc83, 0xfc29e10e, 0x38d212d2, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x444085c4, 0x672ddcf0, 0x9388e3e0, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x74e70490, 0x4ec93797, 0xcc783ad0, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x5caf6d0e, 0x8ebc0fe0, 0xb327d6fc, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x1ebde334, 0xd3588900, 0xce1ec620, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x703860e6, 0x721d701e, 0x4c8f8360, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x9dc783d0, 0x2ba57cc0, 0x561f7a9e, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x4ea9b8f0, 0x800e3eb3, 0xce526bca, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0xdf81a3a0, 0x8955d602, 0x123ebf86, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x57919390, 0x6fb7e400, 0x54e5d490, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x30304e00, 0x582af74b, 0x74f2a0c0, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0xe84029a0, 0xa842b088, 0x9cc4c9b0, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0xdd573200, 0x59e5bb64, 0x316119a8, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x2640857c, 0x2858dcd8, 0xc86f1b18, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0xfc6fa882, 0x8fb4a5c0, 0xaf2c26e2, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x8004a2f0, 0x563701a0, 0x3dfbd0a8, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x2c6c86bb, 0xe83ebc30, 0x61d23487, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x6ebc2c3f, 0x8d40bef1, 0xc77d19ac, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x5d3ea34c, 0x0ffff409, 0x0496a180, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x2f3cdd9a, 0x6af03060, 0xb33a3df8, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x8e90bd3a, 0x5da017b0, 0xe15cdc44, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0xeb3d913c, 0x44178c58, 0x3d32f566, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x475d8174, 0xd080caec, 0xe403cd80, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0xa99f65c8, 0xae02467e, 0x2cf043ad, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x4e5075e0, 0x106ff218, 0x2f2b4420, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0xb9dd7362, 0x20b8c990, 0xbe2d484c, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0xa148d73e, 0x3cc0f346, 0xac6c1dc0, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x9185cdc0, 0x9478c240, 0xc72b9d10, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x10640e9a, 0xa172f0f0, 0x4b8349b8, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x77c77558, 0xdf7c77fa, 0x64527238, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x24922d7c, 0xd2894566, 0x07830114, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x6b926783, 0xdbc3f268, 0x0a44caf8, 0x00000000, 0x00000000)
    TEST_BEQ(0x00000000, 0x00000000, 0xfc98d552, 0xca9087ec, 0xfc98d552, 0xca9087ec)
###detect exception
    bne s2, zero, inst_error
###score ++
    addi.w s3, s3, 1
###output (s0<<24)|s3
inst_error:  
    slli.w t1, s0, 24
    NOP4
    or t0, t1, s3 
    NOP4
    st.w t0, s1, 0
    jirl zero, ra, 0
END(n16_beq_test)
